import request from '@/utils/request'

const updateApi = {
    updateDevice:'/pm-center/fna/deviceSoftware/modify',
    updateSoftDevice:'/pm-center/fna/technologyTransfer/modify',
    updateMetral:'/pm-center/fna/materialFuel/modify',
    updateFuel:'/pm-center/fna/fuelPower/modify',
    updateAssay:'/pm-center/fna/testAssayProcessing/modify',
    updateTrial:'/pm-center/fna/trial/modify',
    updateOut:'/pm-center/fna/outsourcedResearch/modify',
    updateCon:'/pm-center/fna/exchange/modify',
    updateEx:'/pm-center/fna/accountBudgets/modify',
    updateLu:'/pm-center/fna/consultation/modify',
    updateOther:'/pm-center/fna/other/modify',
    updatePub: '/pm-center/fna/pubDocAffairs/modify',

}
export default updateApi
/**
 * login func
 * parameter: {
 *     username: '',
 *     password: '',
 *     remember_me: true,
 *     captcha: '12345'
 * }
 * @param parameter
 * @returns {*}
 */
export function updateOther(parameter) {
    return request({
      url: updateApi.updateOther,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
  export function updatePub(parameter) {
    return request({
      url: updateApi.updatePub,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
export function updateLu(parameter) {
    return request({
      url: updateApi.updateLu,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
export function updateEx(parameter) {
    return request({
      url: updateApi.updateEx,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
export function updateCon(parameter) {
    return request({
      url: updateApi.updateCon,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
export function updateOut(parameter) {
    return request({
      url: updateApi.updateOut,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
export function updateTrial(parameter) {
    return request({
      url: updateApi.updateTrial,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
export function updateAssay(parameter) {
    return request({
      url: updateApi.updateAssay,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
export function updateFuel(parameter) {
    return request({
      url: updateApi.updateFuel,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
export function updateDevice(parameter) {
  return request({
    url: updateApi.updateDevice,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json',
    },
  })
}
export function updateSoftDevice(parameter) {
    return request({
      url: updateApi.updateSoftDevice,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }
  export function updateMetral(parameter) {
    return request({
      url: updateApi.updateMetral,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      },
    })
  }

